﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace yafc.UI
{
	class Theme : ITheme
	{
		private string name;

		private Font defaultFont = new Font("Arial", 8);

		private Font nameFont = new Font("Tohoma", 8);
		private Font textFont = new Font("Tohoma", 8);
		private Font timeFont = new Font("Arial", 7);

		private Brush defaultBrush = SystemBrushes.WindowText;

		private Brush nameBrush			= SystemBrushes.WindowText;
		private Brush textBrush			= SystemBrushes.WindowText;
		private Brush timeBrush			= SystemBrushes.WindowText;
		private Brush bgBrush			= SystemBrushes.Window;
		private Brush highlightBgBrush	= new SolidBrush(Color.LightBlue);

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		public Font GetFont(string Usage)
		{
			switch (Usage)
			{
			case "NameFont":
				return nameFont;
			case "TimeFont":
				return timeFont;
			case "TextFont":
				return textFont;
			default:
				return defaultFont;
			}
		}
		public Brush GetBrush(string Usage)
		{
			switch (Usage)
			{
			case "NameBrush":
				return nameBrush;
			case "TimeBrush":
				return timeBrush;
			case "TextBrush":
				return textBrush;
			case "BgBrush":
				return bgBrush;
			case "HighlightBgBrush":
				return highlightBgBrush;
			default:
				return defaultBrush;
			}
		}
	}
}
